<!DOCTYPE html>
<html>
<#include "../../include/resource.html">
<body>
	<#assign nid="member"> 
	<#include "../../common/function.html"> 
	<#include "../../include/header.html">
	 
	<!-- #main start-->
	<div id="main" class="clearfix" >
		<!-- .wrap950 开始-->
		<div class="wrap950 ">
			<!--左边的导航user_left 开始-->
			<div class="user_left">
				<#assign mid="m_member" >
				<#include "../user_menu.html">
			</div>
			<!--左边的导航user_left 结束-->
			<!--右边的内容user_right 开始-->
			<div class="user_right">
				<!--右边的内容user_right_main 开始-->
				<div class="user_right_main">
					<div class="user_main_title well" style="height:25px; padding-top:3px;"> 
						记录时间：<input type="text" name="dotime1" id="dotime1" value="${dotime1?default("")}" size="15" onClick="change_picktime()"/> 
						到 <input type="text"  name="dotime2" value="${dotime2?default("")}" id="dotime2" size="15" onClick="change_picktime()"/>   
						<input value="搜索" type="submit" class="btn-action" onClick="sousuo();" /> 
					</div>	
					<!-- 内容开始 -->
					<form action="" method="post">
						<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" >
							<tr class="header">
		                            <td>用户名称</td>
		                            <td>转出金额</td>
		                            <td>获得利息</td>
		                            <td>利息手续费</td>
		                            <td>转出状态</td>
		                            <td>添加时间</td>
		                        </tr>
		                        <#if (itemList?exists)&&(itemList?size>0)>
		                    	<#list itemList as item>
		                        <tr class="s">
		                            <td>${item.username!"-"}</td>
		                            <td>${item.money}</td>
		                            <td>${item.interest}</td>
		                            <td>${item.fee}</td>
		                            <td><font color="red"><#if item.status == 0>待审核<#elseif item.status == 1>资金已到账<#else>审核未通过</#if></font></td>
		                            <td>${dateformat(item.add_time?c)}</td>
		                        </tr>
		                    </#list><#else><tr><td colspan="12">无符合条件信息！</td></tr>
		                    </#if>
							<tr>
								<td colspan="11" class="page">
									<div align="center">
										<#import "../../common/page.html" as pager>  
			         	 				<@pager.pagination page=page url="/treasure/cashList.html" map=params style="style1"  />
		         	 				</div>  
								</td>
							</tr>
						</table>
					</form>	
					<!-- 内容结束 -->
				</div>
				<!--右边的内容user_right_main 结束-->
			</div>
			<!--右边的内容user_right 结束-->
		</div>
		<!-- .wrap950 结束-->
	</div>
	<!-- #main start-->
	<script>
	function sousuo(){
		var url = "${webroot}/treasure/cashList.html?search=true";
		var dotime1 = jQuery("#dotime1").val();
		var dotime2 = jQuery("#dotime2").val();
		var status = jQuery("#status").val();
		var isFirst=true;
		if (dotime1!=null){
			url += "&dotime1="+dotime1;
		}
		if (dotime2!=null){
			url += "&dotime2="+dotime2;
		}
		if (status!=null){
			url += "&status="+status;
		}
		location.href = url;
		
	}

	</script>
	<#include "../../include/footer.html">